<ion-view view-title="促销" class="myworld_discount">
	
  <ion-content scroll="false">
  	
	<div class="row text-center font-large-my padding-0">
		<div class="col top-activated" on-tap="activeSlide(0)" ng-class="selectIndex==0?'top-activated':''">
 		  <img src="img/group1.png" /><br /> 
 		    活动设置
 		</div>
 		<div class="col" on-tap="activeSlide(1)" ng-class="selectIndex==1?'top-activated':''">
 		   <img src="img/group2.png" /><br />  
 		     促销商品
 		</div>
 		<div class="col" on-tap="activeSlide(2)" ng-class="selectIndex==2?'top-activated':''">
 		   <img src="img/group3.png" /><br />  
 		     促销对象
 		</div>
 	</div>
	<ion-slide-box delegate-handle="main-handle" on-slide-changed="slideChanged(index)" active-slide="slideIndex" show-pager="false">
	
		<ion-slide>
			<ion-scroll direction="y" ng-style="myObj" lazy-scroll>
				<!--描述：下拉刷新-->
				<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
				
					
		<div class="list list-borderless">
			<li class="item padding-10 text-center" style="color: black;">
				发起促销
			</li>
       	    <li class="item item-input">
       	   	  活动名称：{{datas.name}}
       	   </li>
       	    <li class="item item-input">
       	   	  开始时间：{{datas.start_time}}
       	   </li>
       	     <li class="item item-input">
       	   	  结束时间：{{datas.end_time}}
       	   </li>
       	    <li class="item item-input">
       	 		上传图片：
           	<div class="file-show">
					<div class="add input-file" ng-repeat="img in datas.image" style="overflow: initial;">
						<!--<div style="position: absolute;margin-left: 1.5rem;margin-top: -1.0rem;font-size: 1.0rem;color: #333333;" on-tap="ondelete($index)"><i class="icon ion-close-circled"></i></div>-->
						<img style="width: 100%;height: 100%;" src="{{img.image}}">
					</div>
				</div>
				<!--<div class="add input-file" on-tap="doShowFile()">
					<span class="icon ion-plus"></span>
				</div>
				<input id="upfilebutton" type="file" multiple="multiple" accept="image/*" onchange="angular.element(this).scope().onupload(this)" style="display: none;" />-->
           </li>
           <li class="item item-input">
       	    品牌：{{datas.brand_name}}
       	 </li>
       	 <div ng-repeat="cat in datas.cat_type">
       	 	<li class="item item-borderless item-input-inset ">
			<span ng-class="{invisible:$index>0}">已选品类：</span>{{cat.name}}
		</li>
       	 </div>
		<!--<li class="item item-input" >
			 已选品类：{{cat.id}}
		</li>-->
		
       </div>
       
       <div class="button-bar padding">
     	 <button class="button  button-assertive" >取消</button>
     	 <button class="button  button-positive col-offset-10" on-tap="submit()">保存</button>
      </div>
							
	<!--描述：当用户到达页脚或页脚附近时-->
		<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
	</ion-scroll>
</ion-slide>
		
		
 <ion-slide>
    <ion-scroll direction="y" ng-style="myObj">
	<!--描述：下拉刷新-->
	
			<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
			  <div class="list list-inset" style="margin-top: 1px;" >
			  	<li class="item item-divider padding-0">
			    <div class="row text-center">
			    	<div class="col"></div>
			   	  <div class="col">商品名称</div>
			   	  <div class="col">价格</div>
			   	  <div class="col">数量</div>
			   	  <div class="col">限购数</div>
			   </div>
			  </li> 
			   <li class="item padding-0 stable-bg" ng-repeat="goods in dealer.goods">
			    <div class="row padding-0 text-center">
			    	<div class="col"><img style="width: 100%;height: 100%;" src="{{goods.image}}"></div>
			   	  <div class="col"><input type="text" readonly=""  value="{{goods.goods_name}}" style="width: 100%;" class="text-center"/></div>
			   	  <div class="col"><input type="text" style="width: 100%;"  ng-disabled="!isable"  ng-model="goods.price" placeholder="价格" class="text-center"></input></div>
			   	  <div class="col"><input type="text" readonly="" value="{{goods.count}}" style="width: 100%;" class="text-center"/></div>
			   	  <div class="col"><input type="text" readonly="" value="{{goods.least_buy_num}}" style="width: 100%;" class="text-center"/></div>
			   </div>
			 </li>  
			</div>	
	     					
	  <div class="button-bar padding">
     	 <button class="button  button-assertive" href="#/tab/home" >取消</button>
     	 <button class="button  button-positive col-offset-10" on-tap="get_goods()">保存</button>
     </div>
	     					
		<!--描述：当用户到达页脚或页脚附近时-->
		<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
	</ion-scroll>
	</ion-slide>			
					
  <ion-slide>
   <ion-scroll direction="y" ng-style="myObj" lazy-scroll>
   	
   			<!--引入外部的页面-->
		  <div ng-include="'templates/myworld/discount/selectagency_template.html'"></div>
		  
		<!--描述：当用户到达页脚或页脚附近时-->
	<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
  </ion-scroll>
 </ion-slide>			
	</ion-slide-box>
	
   </ion-content>
</ion-view>